package com.juyu.miliao.api.dao.mysql;

import com.juyu.miliao.api.domain.AppVersionInfo;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 版本信息dao
 * @author xuanqicheng
 * @create 2019-10-17:07
 */
@Repository
public class AppVersionInfoDao {

    @Autowired
    private SqlSession sqlSession;

    /**
     * 根据appPackageId与系统 查询更新版本信息
     * @return
     */
    public List<AppVersionInfo> getAppVersionInfoByConfigAppId(int configAppId){

        return sqlSession.selectList("getAppVersionInfoByAppPackageIdAndPhoneSystem",configAppId);
    }
}
